package com.ddtech.framework.system.service.dto;

import com.ddtech.annotation.Query;
import lombok.Data;

import java.io.Serializable;
import java.util.Set;

/**
 * @author Apache License
 * @date 2018-11-23
 */
@Data
public class UserQueryCriteria implements Serializable {

    @Query(propName = "id", type = Query.Type.NOT_EQUAL)
    private String id;

    @Query(propName = "id", type = Query.Type.IN, joinName = "dept")
    private Set<String> deptIds;

    @Query(type = Query.Type.INNER_LIKE)
    private String name;

    @Query(type = Query.Type.INNER_LIKE)
    private String username;

    @Query(type = Query.Type.INNER_LIKE)
    private String email;

    @Query
    private Boolean enabled;

    private String deptId;

    private  String roleFlag;
}
